function f(n:number = 100){
  console.log(n.toFixed());
  console.log(n.toFixed(3));
}
f(123.45)
f()